package org.example.controller;


import lombok.extern.slf4j.Slf4j;
import org.springframework.stereotype.Controller;
import org.springframework.web.bind.annotation.RequestHeader;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.ResponseBody;

@Controller
@Slf4j
public class HeaderController {

    @RequestMapping("/header")
    @ResponseBody
    public Object header(
            @RequestHeader("User-Agent") String userAgent,
            @RequestHeader("Cookie") String cookie
    ){
        log.debug("user agent={}",userAgent);
        log.debug("cookie={}",cookie);
        return null;
    }
}
